<script>
	// #ifdef APP-PLUS
	import {appHotUpdate} from "./utils/appHotUpdate"
	import dbInit, { DB } from "@/utils/offline/sqlite/dbinit.js";
	import { registryNetworkStateChange } from "@/utils/offline/listener.js"
	// #endif
	export default {
		onLaunch: async function() {
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
			//todo 模拟数据
			// 初始化数据...
			// #ifdef APP-PLUS
				// this.$store.commit("setDB", DB);
				await dbInit();
			// #endif
			// #ifdef APP-PLUS
				registryNetworkStateChange()
			// #endif
			// 初始海康数据...
			this.$store.commit('initEzuikit');
		},
		onShow: function() {
			// 增加APP自动热更新功能
		},

	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import '@/uni_modules/uni-scss/index.scss';
	@import "@/assets/base.css";
	@import "@/assets/lsBase.scss";
	@import "@/assets/flex.scss";

	// 设置整个项目的背景色
	page {
		background-color: #FFFFFF;
		box-sizing: border-box;
		font-family: PingFang SC-中等, PingFang SC;
	}

	//设置圆角
	checkbox.round .wx-checkbox-input,
	checkbox.round .uni-checkbox-input {
		border-radius: 100upx;
	}

	//设置背景色
	checkbox.color[checked] .wx-checkbox-input,
	checkbox.color.checked .uni-checkbox-input {
		background-color: #2F80ED !important; //背景
		color: #FFFFFF !important; //对勾
		border: 1rpx solid #2F80ED;
	}


	/* #ifndef APP-NVUE */

	.uni-checkbox-wrapper .uni-checkbox-input-checked {
		background-color: #2F80ED !important; //背景
		color: #FFFFFF !important; //对勾
		border: 1rpx solid #2F80ED;
	}

	.uni-checkbox-wrapper .uni-checkbox-input {
		border-color: #d1d1d1;
	}

	uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
		border-color: #d1d1d1;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
